//京东秒杀倒计时
 window.onload = function() {
        setInterval(function() {
            var nowTime = new Date();//获取当前时间
            //创建目标日期
            var endTime = new Date("2020-12-30 10:00:00");
            var seconds = parseInt((endTime.getTime() - nowTime.getTime()) / 1000);//两个时间点的时间差(秒)
			// var d = parseInt(seconds / 3600 / 24);
            var h = parseInt(seconds / 3600 % 24);
            var m = parseInt(seconds / 60 % 60);
            var s = parseInt(seconds % 60);//秒
			// $("d").innerHTML = d;
            document.getElementById("seckill_h").innerHTML = h;
			document.getElementById("seckill_m").innerHTML = m;
			document.getElementById("seckill_s").innerHTML = s;
        }, 1000);
    }









